<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<style>
</style>
<script type="text/javascript">
    $(function() {
        $('#quartzScheduleJobEditForm').form({
            url : '${path}/quartzScheduleJob/edit',
            onSubmit : function() {
                progressLoad();
                var isValid = $(this).form('validate');
                if (!isValid) {
                    progressClose();
                }
                return isValid;
            },
            success : function(result) {
                progressClose();
                result = $.parseJSON(result);
                if (result.success) {
                    showMsg(result.msg);
                    parent.$.modalDialog.openner_dataGrid.datagrid('reload');//之所以能在这里调用到parent.$.modalDialog.openner_dataGrid这个对象，是因为user.jsp页面预定义好了
                    parent.$.modalDialog.handler.dialog('close');
                } else {
                    var form = $('#quartzScheduleJobEditForm');
                    parent.$.messager.alert('错误', result.msg, 'error');
                }
            }
        });
    });
</script>
<div class="easyui-layout" data-options="fit:true,border:false">
    <div data-options="region:'center',border:false" title="" style="overflow-x:hidden;overflow-y: auto;padding: 3px;" >
        <form id="quartzScheduleJobEditForm" method="post">
             <table class="grid">
 <tr>
 					 <td>任务名称</td>
                      <td>
                        <input name='jobName' id='jobName' disabled="disabled" type='text' placeholder='请输入任务' class='easyui-text-2  span2' value="${quartzScheduleJob.jobName}">
                     </td>
  					 <td>任务组</td>
                      <td>
                        <input name='jobGroup' id='jobGroup' disabled="disabled"  type='text' placeholder='请输入任务组' class='easyui-text-2  span2' value="${quartzScheduleJob.jobGroup}">
                     </td>
                      </tr> <tr>
                     <td>cron表达式</td>
                      <td>
                        <input name='cron' id='cron'  type='text' placeholder='请输入cron表达式' class='easyui-text-2  span2' value="${quartzScheduleJob.cron}">
                     </td>
                 
                     <td>执行时间</td>
                      <td>
                        <input name='runDate' id='runDate'  type='text' placeholder='请输入执行时间' class='easyui-text-2  span2' value="${quartzScheduleJob.runDate}">
                     </td>
                     
                  </tr> <tr>
                     <td>任务执行bean</td>
                      <td>
                        <input name='className' id='className' disabled="disabled"  type='text' placeholder='请输入任务执行bean' class='easyui-text-2  span2' value="${quartzScheduleJob.className}">
                     </td>
                      <td>任务执行方法</td>
                      <td>
                        <input name='methodName' id='methodName' disabled="disabled"  type='text' placeholder='请输入任务执行方法' class='easyui-text-2  span2' value="${quartzScheduleJob.methodName}">
                     </td>
                  </tr> 
                  <tr>
                      <td>描述</td>
                     <td colspan="3">
                        <textarea name='desc'  class='easyui-text-2  span2' style="min-height:50px;width:90%" disabled="disabled">${quartzScheduleJob.desc}</textarea>
                         <input type="hidden" name="params"/>
                     </td>
                   </tr>
                  <tr>
                      <td>执行参数</td>
                     <td colspan="3">
                        <textarea name='params'  class='easyui-text-2  span2' style="min-height:50px;width:90%" disabled="disabled">${quartzScheduleJob.params}</textarea>
                     </td>
                   </tr>
            </table>
             <div style="padding:5px;color:#666">
            	说明：执行参数的写法为"<b style="color:green">参数名:类型:值</b>",如"id:Integer:1"，注意不包括<b style="color:green">双引号，多个参数用逗号隔开</b>。
参数类型为java类型，主要提供<b style="color:green">Integer、Long、String、Date、TimeStamp、float、double</b>类型，<b style="color:red">cron表达式和执行时间需要填写其中一个,
 編輯主要是修改cron表达式或执行时间</b>  
            </div>
        </form>
    </div>
</div>